package Text_82;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Code {

	public static void main(String[] args) throws IOException {
		  BufferedReader br = new BufferedReader(new FileReader("src\\day11\\b.txt"));
	        String s = br.readLine();
	        int count = Integer.parseInt(s);
	        br.close();
	        count++;
	        if(count<=3){
	            System.out.println("欢迎使用，第"+count+"次免费");
	        }else{
	            System.out.println("本产品只能免费使用3次，请充值后使用");
	        }
	        BufferedWriter bw = new BufferedWriter(new FileWriter("src\\day11\\b.txt"));
	        bw.write(count +"");
	        bw.close();

	}

}
